package Controller;

import java.util.ArrayList;

import Model.Cour;
import Model.Exercice;
import Model.Library;

/**
 * Contient la liste des cours et des exercices.
 * @author Roger
 */
public class LibraryController {

	private Library l;
	private CourController courController;
	private ExerciceController exerciceController;

	public LibraryController() {
		this.l = new Library();
		courController = new CourController();
		exerciceController = new ExerciceController();
	}

	public String getNom() {
		return l.getNom();
	}

	public void setNom(String nom) {
		l.setNom(nom);
	}

	public ArrayList<Exercice> getExercices() {
		return l.getExercices();
	}

	public ArrayList<Cour> getCours() {
		return l.getCours();
	}

	public void addCours(Cour c) {
		l.addCours(c);
	}

	public void supCour(int id) {
		l.supCour(id);
	}

	public void addExercice(Exercice c) {
		l.addExercice(c);
	}

	public void supExercice(int id) {
		l.supExercice(id);
	}

}
